package com.liyang.springcloud.service;

/**
 * @description: 库存service
 * @author: liyang
 * @date: 2024/1/10 11:02
 **/
public interface StorageService {

    /**
     * @description: 扣减库存
     * @author: liyang
     * @date: 2024/1/10 11:01
     * @param: productId 产品ID
     * @param: count 数量
     **/
    void decrease(Long productId, Integer count);
}
